<include file="__PUBLIC__/head.php">
	<title>修改栏目</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'index'}"><i class="icon-reorder mr3 gray"></i>栏目管理</a>
		<a href="{|U:'add'}"><i class="icon-plus mr3 gray"></i>添加栏目</a>
		<a href="{|U:'updateCache'}" class="ajax" actUrl="{|U('index')}"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
		<a class="act"><i class="icon-edit"></i>修改栏目</a>
	</div>
<form action="{|U('edit')}" method="post" enctype="multipart/form-data">
	<input type="hidden" name='cid' value='{$field.cid}' />
	<div class="p10">
		<table class="table form">
			<tr class='fm f14'>
				<td class="tr f14 fm pct25"><span class="pr10">所属栏目</span></td>
				<td>
					<select name="pid" class="selected">
						<option value="0">顶级栏目</option>
						<list from="$category" name="cate">
							<option value="{$cate.cid}" {$cate.disabled} {$cate.selected}>{$cate._name}</option>
						</list>
					</select>
				</td>
			</tr>
			<tr class='fm f14'>
				<td class="tr f14 fm pct25"><span class="pr10">栏目标题</span></td>
				<td><input class="pct30" type="text" name="cname" value="{$field.cname}"  /></td>
			</tr>
			<tr class='fm f14'>
				<td class="tr f14 fm pct25"><span class="pr10">跳转地址</span></td>
				<td><input class="pct40" type="text" name="url" placeholder="控制器名称/方法 如：Index/index" value="{$field.url}"  /></td>
			</tr>
			<tr class='fm f14'>
				<td class="tr f14 fm pct25"><span class="pr10">栏目图片</span></td>
				<td>
					<fieldset class="bgwhite pct50 dib">
						<legend>上传图片</legend>
						<input type="file"  name="pic" />

					</fieldset>
					<if value="$field.pic">
						<div class="dib bde showPic">
						<img src="__ROOT__/{$field.pic}" style="vertical-align:middle" height="30" />
						<input type="hidden" name="oldpic" value="{$field.pic}" />
						</div>
					</if>
				</td>
			</tr>
			<tr class='fm f14'>
				<td class="tr f14 fm pct25"><span class="pr10">栏目关键字(SEO)</span></td>
				<td><textarea class="pct60" name="keywords" cols="30" rows="2">{$field.keywords}</textarea></td>
			</tr>
			<tr class='fm f14'>
				<td class="tr f14 fm pct25"><span class="pr10">栏目描述(SEO)</span></td>
				<td><textarea class="pct70" name="description" cols="30" rows="3">{$field.description}</textarea> <span class="gray">80-120字为宜</span></td>
			</tr>
		</table>
	</div>
	<div class="fixBottom">
		<p class="p5 tc"><input type="submit" class="btn bgblack f20" value='确定操作' /></p>
	</div>
</form>
</body>
</html>